import { http } from './http'
//查询所有数据源
export function getDateSource(data?:object){
  return http('post','/api/doge/findAllDataSource',data)
}
//添加数据源
export function addDataSource(data?:object){
  return http('post','/api/doge/insertDataSource',data)
}
//测试数据源-新建
export function testNewDataSource(data?:object){
  return http('post','/api/doge/testDataSource',data)
}
//查看数据源详情
export function editDataSource(data?:object){
  return http('post','/api/doge/findDataSourceById',data)
}
//删除数据源
export function deleteDataSource(data?:object){
  return http('post','/api/doge/deleteDataSourceById',data)
}
//修改数据源信息
export function updateDataSource(data?:object){
  return http('post','/api/doge/updateDataSource',data)
}